import request from '@/utils/request'

// 查询代驾司机提现列表
export function listWithdraw(query) {
  return request({
    url: '/driver/withdraw/list',
    method: 'get',
    params: query
  })
}

// 查询代驾司机提现详细
export function getWithdraw(id) {
  return request({
    url: '/driver/withdraw/' + id,
    method: 'get'
  })
}



// 修改代驾司机提现
export function updateWithdraw(data) {
  return request({
    url: '/driver/withdraw/audit',
    method: 'post',
    data: data
  })
}

// 删除代驾司机提现
export function delWithdraw(id) {
  return request({
    url: '/driver/withdraw/' + id,
    method: 'delete'
  })
}

// 导出代驾司机提现
export function exportWithdraw(query) {
  return request({
    url: '/driver/withdraw/export',
    method: 'get',
    params: query
  })
}

// 服务商提现审核
export function xxpay(id) {
  return request({
    url: '/driver/withdraw/xxpay/'+ id,
    method: 'post'
  })
}

// 服务商提现审核
export function wxpay(id) {
  return request({
    url: '/driver/withdraw/wxpay/'+ id,
    method: 'post'
  })
}
